//
//  FuOcrLite.h
//  FunnyReader
//
//  Created by yht on 2025/1/21.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface FunOcrResult : NSObject
@property(nonatomic,copy)NSString *text;
@end;


@protocol FuOcrLiteDelegate <NSObject>
- (void)doneDetection:(FunOcrResult*)result;
@end

@interface FuOcrLite : NSObject
@property(nonatomic,weak)id<FuOcrLiteDelegate> delegate;

- (void)ocrDetection:(UIImage*)input padding:(int)padding maxSideLen:(int)maxSideLen boxScoreThresh:(float)boxScoreThresh boxThresh:(float)boxThresh unClipRatio:(float)unClipRatio doAngle:(BOOL)doAngle mostAngle:(BOOL)mostAngle;

@end

NS_ASSUME_NONNULL_END
